package com.learn.core.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * @auther CodeGenerator
 * @create 2021-03-12 02:13:35
 * @describe 组织机构表实体类
 */
@TableName("l_organization")
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value="LOrganization对象", description="组织机构表")
public class LOrganization implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "organization_id", type = IdType.AUTO)
    private Integer organizationId;

    @ApiModelProperty(value = "机构名称")
    @TableField("organization_name")
    private String organizationName;

    @ApiModelProperty(value = "机构编码")
    @TableField("organization_code")
    private String organizationCode;


    @ApiModelProperty(value = "描述")
    @TableField("description")
    private String description;

    @ApiModelProperty(value = "机构地址")
    @TableField("organization_address")
    private String organizationAddress;

    @ApiModelProperty(value = "机构电话")
    @TableField("organization_phone")
    private String organizationPhone;

    @ApiModelProperty(value = "父节点id")
    @TableField("parent_node")
    private Integer parentNode;

    @ApiModelProperty(value = "机构类型")
    @TableField("organization_type")
    private String organizationType;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_user")
    private String createUser;

    @TableField("update_time")
    private Date updateTime;

    @TableField("update_user")
    private String updateUser;

    @TableField(exist = false)
    private List<LOrganization> chilLOrganization;

    public List<LOrganization> getChilLOrganization() {
        return chilLOrganization;
    }

    public void setChilLOrganization(List<LOrganization> chilLOrganization) {
        this.chilLOrganization = chilLOrganization;
    }

    public Integer getOrganizationId() {
        return organizationId;
    }

    public LOrganization setOrganizationId(Integer organizationId) {
        this.organizationId = organizationId;
        return this;
    }

    public String getOrganizationName() {
        return organizationName;
    }

    public LOrganization setOrganizationName(String organizationName) {
        this.organizationName = organizationName;
        return this;
    }

    public String getOrganizationCode() {
        return organizationCode;
    }

    public LOrganization setOrganizationCode(String organizationCode) {
        this.organizationCode = organizationCode;
        return this;
    }

    public String getDescription() {
        return description;
    }

    public LOrganization setDescription(String description) {
        this.description = description;
        return this;
    }

    public String getOrganizationAddress() {
        return organizationAddress;
    }

    public LOrganization setOrganizationAddress(String organizationAddress) {
        this.organizationAddress = organizationAddress;
        return this;
    }

    public String getOrganizationPhone() {
        return organizationPhone;
    }

    public LOrganization setOrganizationPhone(String organizationPhone) {
        this.organizationPhone = organizationPhone;
        return this;
    }

    public Integer getParentNode() {
        return parentNode;
    }

    public LOrganization setParentNode(Integer parentNode) {
        this.parentNode = parentNode;
        return this;
    }

    public String getOrganizationType() {
        return organizationType;
    }

    public LOrganization setOrganizationType(String organizationType) {
        this.organizationType = organizationType;
        return this;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public LOrganization setCreateTime(Date createTime) {
        this.createTime = createTime;
        return this;
    }

    public String getCreateUser() {
        return createUser;
    }

    public LOrganization setCreateUser(String createUser) {
        this.createUser = createUser;
        return this;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public LOrganization setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
        return this;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public LOrganization setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
        return this;
    }

    @Override
    public String toString() {
        return "LOrganization{" +
        "organizationId=" + organizationId +
        ", organizationName=" + organizationName +
        ", organizationCode=" + organizationCode +
        ", description=" + description +
        ", organizationAddress=" + organizationAddress +
        ", organizationPhone=" + organizationPhone +
        ", parentNode=" + parentNode +
        ", organizationType=" + organizationType +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", updateTime=" + updateTime +
        ", updateUser=" + updateUser +
        "}";
    }
}